import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import com.ssm.service.impl.TheCardServiceImpl;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
public class TestWebService {
    public static void main(String[] args) throws Exception {

//        CardServiceImpl service=new CardServiceImpl();
//        Object str = service.CardDataQuery();

//        System.out.println(str);
        Call call = (Call) (new Service()).createCall();
        call.setTargetEndpointAddress(new URL("http://10.120.1.18:7001/hnCardService/services/CardService"));
        call.setUseSOAPAction(true);
        call.addParameter("xmlBoby", XMLType.XSD_STRING, ParameterMode.IN);
        String str="<操作*>即制卡批次</操作*><用户名*>411300</用户名*><密码*>411300vTZd18148h</密码*><城市代码*>410200</城市代码*><所属区县>41020022</所属区县><服务银行>95566</服务银行><卡商*>8</卡商*><批次号*>5733682</批次号*><人数*>1</人数*>";
        call.setOperationName(new QName("http://ws.apache.org/axis2","allDsjk"));
        call.setUseSOAPAction(true);
        call.setReturnClass(String.class);
        Object object="";
        object=call.invoke(new Object[]{str});
        System.out.println(object.toString());
        String bitch="";
        TheCardServiceImpl service=new TheCardServiceImpl();
        System.out.println(service.allDsjkbatch()+"dddd");
    }

}
